export default () => {
    return {
        name: 'lxl-configureServer',
        configureServer(server) {
            server.middlewares.use((req, res, next) => {
                // custom handle request...
                // console.log("req", req.url);
                // console.log("res", res);
                if (req.url.indexOf("userInfo") > -1) {
                    res.setHeader("Content-Type", "application/json");
                    res.end(JSON.stringify({
                        name: '张三疯',
                        age: '18'
                    }));
                }else {
                    next();

                }
            })
        },
    }
}
